Optimal. Leaf size=122 \[ -\frac {2 a^2+b^2}{6 x^3}+\frac {2}{3} a b d \cos (c) \text {Ci}\left (d x^3\right )-\frac {2}{3} a b d \sin (c) \text {Si}\left (d x^3\right )-\frac {2 a b \sin \left (c+d x^3\right )}{3 x^3}+\frac {1}{3} b^2 d \sin (2 c) \text {Ci}\left (2 d x^3\right )+\frac {1}{3} b^2 d \cos (2 c) \text {Si}\left (2 d x^3\right )+\frac {b^2 \cos \left (2 \left (c+d x^3\right )\right )}{6 x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 8, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {3403, 6, 3380, 3297, 3303, 3299, 3302, 3379} \[ -\frac {2 a^2+b^2}{6 x^3}+\frac {2}{3} a b d \cos (c) \text {CosIntegral}\left (d x^3\right )-\frac {2}{3} a b d \sin (c) \text {Si}\left (d x^3\right )-\frac {2 a b \sin \left (c+d x^3\right )}{3 x^3}+\frac {1}{3} b^2 d \sin (2 c) \text {CosIntegral}\left (2 d x^3\right )+\frac {1}{3} b^2 d \cos (2 c) \text {Si}\left (2 d x^3\right )+\frac {b^2 \cos \left (2 \left (c+d x^3\right )\right )}{6 x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 3297
Rule 3299
Rule 3302
Rule 3303
Rule 3379
Rule 3380
Rule 3403
Rubi steps
\begin {align*} \int \frac {\left (a+b \sin \left (c+d x^3\right )\right )^2}{x^4} \, dx &=\int \left (\frac {a^2}{x^4}+\frac {b^2}{2 x^4}-\frac {b^2 \cos \left (2 c+2 d x^3\right )}{2 x^4}+\frac {2 a b \sin \left (c+d x^3\right )}{x^4}\right ) \, dx\\ &=\int \left (\frac {a^2+\frac {b^2}{2}}{x^4}-\frac {b^2 \cos \left (2 c+2 d x^3\right )}{2 x^4}+\frac {2 a b \sin \left (c+d x^3\right )}{x^4}\right ) \, dx\\ &=-\frac {2 a^2+b^2}{6 x^3}+(2 a b) \int \frac {\sin \left (c+d x^3\right )}{x^4} \, dx-\frac {1}{2} b^2 \int \frac {\cos \left (2 c+2 d x^3\right )}{x^4} \, dx\\ &=-\frac {2 a^2+b^2}{6 x^3}+\frac {1}{3} (2 a b) \operatorname {Subst}\left (\int \frac {\sin (c+d x)}{x^2} \, dx,x,x^3\right )-\frac {1}{6} b^2 \operatorname {Subst}\left (\int \frac {\cos (2 c+2 d x)}{x^2} \, dx,x,x^3\right )\\ &=-\frac {2 a^2+b^2}{6 x^3}+\frac {b^2 \cos \left (2 \left (c+d x^3\right )\right )}{6 x^3}-\frac {2 a b \sin \left (c+d x^3\right )}{3 x^3}+\frac {1}{3} (2 a b d) \operatorname {Subst}\left (\int \frac {\cos (c+d x)}{x} \, dx,x,x^3\right )+\frac {1}{3} \left (b^2 d\right ) \operatorname {Subst}\left (\int \frac {\sin (2 c+2 d x)}{x} \, dx,x,x^3\right )\\ &=-\frac {2 a^2+b^2}{6 x^3}+\frac {b^2 \cos \left (2 \left (c+d x^3\right )\right )}{6 x^3}-\frac {2 a b \sin \left (c+d x^3\right )}{3 x^3}+\frac {1}{3} (2 a b d \cos (c)) \operatorname {Subst}\left (\int \frac {\cos (d x)}{x} \, dx,x,x^3\right )+\frac {1}{3} \left (b^2 d \cos (2 c)\right ) \operatorname {Subst}\left (\int \frac {\sin (2 d x)}{x} \, dx,x,x^3\right )-\frac {1}{3} (2 a b d \sin (c)) \operatorname {Subst}\left (\int \frac {\sin (d x)}{x} \, dx,x,x^3\right )+\frac {1}{3} \left (b^2 d \sin (2 c)\right ) \operatorname {Subst}\left (\int \frac {\cos (2 d x)}{x} \, dx,x,x^3\right )\\ &=-\frac {2 a^2+b^2}{6 x^3}+\frac {b^2 \cos \left (2 \left (c+d x^3\right )\right )}{6 x^3}+\frac {2}{3} a b d \cos (c) \text {Ci}\left (d x^3\right )+\frac {1}{3} b^2 d \text {Ci}\left (2 d x^3\right ) \sin (2 c)-\frac {2 a b \sin \left (c+d x^3\right )}{3 x^3}-\frac {2}{3} a b d \sin (c) \text {Si}\left (d x^3\right )+\frac {1}{3} b^2 d \cos (2 c) \text {Si}\left (2 d x^3\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.27, size = 116, normalized size = 0.95 \[ \frac {-2 a^2+4 a b d x^3 \cos (c) \text {Ci}\left (d x^3\right )-4 a b d x^3 \sin (c) \text {Si}\left (d x^3\right )-4 a b \sin \left (c+d x^3\right )+2 b^2 d x^3 \sin (2 c) \text {Ci}\left (2 d x^3\right )+2 b^2 d x^3 \cos (2 c) \text {Si}\left (2 d x^3\right )+b^2 \cos \left (2 \left (c+d x^3\right )\right )-b^2}{6 x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.67, size = 147, normalized size = 1.20 \[ \frac {2 \, b^{2} d x^{3} \cos \left (2 \, c\right ) \operatorname {Si}\left (2 \, d x^{3}\right ) - 4 \, a b d x^{3} \sin \relax (c) \operatorname {Si}\left (d x^{3}\right ) + 2 \, b^{2} \cos \left (d x^{3} + c\right )^{2} - 4 \, a b \sin \left (d x^{3} + c\right ) - 2 \, a^{2} - 2 \, b^{2} + 2 \, {\left (a b d x^{3} \operatorname {Ci}\left (d x^{3}\right ) + a b d x^{3} \operatorname {Ci}\left (-d x^{3}\right )\right )} \cos \relax (c) + {\left (b^{2} d x^{3} \operatorname {Ci}\left (2 \, d x^{3}\right ) + b^{2} d x^{3} \operatorname {Ci}\left (-2 \, d x^{3}\right )\right )} \sin \left (2 \, c\right )}{6 \, x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.24, size = 226, normalized size = 1.85 \[ \frac {4 \, {\left (d x^{3} + c\right )} a b d^{2} \cos \relax (c) \operatorname {Ci}\left (d x^{3}\right ) - 4 \, a b c d^{2} \cos \relax (c) \operatorname {Ci}\left (d x^{3}\right ) + 2 \, {\left (d x^{3} + c\right )} b^{2} d^{2} \operatorname {Ci}\left (2 \, d x^{3}\right ) \sin \left (2 \, c\right ) - 2 \, b^{2} c d^{2} \operatorname {Ci}\left (2 \, d x^{3}\right ) \sin \left (2 \, c\right ) - 4 \, {\left (d x^{3} + c\right )} a b d^{2} \sin \relax (c) \operatorname {Si}\left (d x^{3}\right ) + 4 \, a b c d^{2} \sin \relax (c) \operatorname {Si}\left (d x^{3}\right ) - 2 \, {\left (d x^{3} + c\right )} b^{2} d^{2} \cos \left (2 \, c\right ) \operatorname {Si}\left (-2 \, d x^{3}\right ) + 2 \, b^{2} c d^{2} \cos \left (2 \, c\right ) \operatorname {Si}\left (-2 \, d x^{3}\right ) + b^{2} d^{2} \cos \left (2 \, d x^{3} + 2 \, c\right ) - 4 \, a b d^{2} \sin \left (d x^{3} + c\right ) - 2 \, a^{2} d^{2} - b^{2} d^{2}}{6 \, d^{2} x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.67, size = 0, normalized size = 0.00 \[ \int \frac {\left (a +b \sin \left (d \,x^{3}+c \right )\right )^{2}}{x^{4}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.48, size = 124, normalized size = 1.02 \[ \frac {1}{3} \, {\left ({\left (\Gamma \left (-1, i \, d x^{3}\right ) + \Gamma \left (-1, -i \, d x^{3}\right )\right )} \cos \relax (c) - {\left (i \, \Gamma \left (-1, i \, d x^{3}\right ) - i \, \Gamma \left (-1, -i \, d x^{3}\right )\right )} \sin \relax (c)\right )} a b d + \frac {{\left ({\left ({\left (i \, \Gamma \left (-1, 2 i \, d x^{3}\right ) - i \, \Gamma \left (-1, -2 i \, d x^{3}\right )\right )} \cos \left (2 \, c\right ) + {\left (\Gamma \left (-1, 2 i \, d x^{3}\right ) + \Gamma \left (-1, -2 i \, d x^{3}\right )\right )} \sin \left (2 \, c\right )\right )} d x^{3} - 1\right )} b^{2}}{6 \, x^{3}} - \frac {a^{2}}{3 \, x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+b\,\sin \left (d\,x^3+c\right )\right )}^2}{x^4} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \sin {\left (c + d x^{3} \right )}\right )^{2}}{x^{4}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________